package com.nuo.test;

import java.util.ArrayList;
import java.util.List;


public class MemoryOut {
	/**
	 * vm args: -Xms20m -Xmx20m -XX:+HeapDumpOnOutofMemoryError
	 * @param args
	 */
	public static void main(String[] args) {
		List list = new ArrayList(); 
		
		while(true){
			list.add(new MyObject());
		}
		
	}
	
	static class MyObject{}
}
